const mongoClient= require('mongodb').mongoClient
let url = "mongodb://localhost:27017/runoob"

mongoClient.connect(url,(err,db)=>{
    if(err) throw err;
    console.log("数据库已创建!")
    db.close()
})